<?php

declare(strict_types=1);

namespace App\CustHub\Amqp\Producers;

use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;

#[Producer(exchange: 'crow_sending', routingKey: 'crow_sending')]
class CrowSendingProducers extends ProducerMessage
{
    public function __construct($data,$delay=0)
    {
        $this->payload = [
            'data' => $data,
            'delay' => $delay,
        ];
    }
}
